<%@ page import="ar.com.photo_admin.domain.PurchaseOrder" %>



<div class="fieldcontain ${hasErrors(bean: purchaseOrderInstance, field: 'groups', 'error')} ">
	<label for="groups">
		<g:message code="purchaseOrder.groups.label" default="Groups" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${purchaseOrderInstance?.groups?}" var="g">
    <li><g:link controller="photoGroup" action="show" id="${g.id}">${g?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="photoGroup" action="create" params="['purchaseOrder.id': purchaseOrderInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'photoGroup.label', default: 'PhotoGroup')])}</g:link>
</li>
</ul>

</div>

